#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

int main(){
    int N;
    cin >> N;
    int nums[N];
    for(int i=0;i<N;i++) cin >> nums[i];
    sort(nums, nums+N);
    cout << nums[0] << endl;
    for(int i=1;i<N;i++){
        if(nums[i] != nums[i-1]) cout << nums[i] << endl;
    }
    return 0;
}